   import S2C_FriendListRespScript from "./friend/S2C_FriendListRespScript"
   import S2C_SyncPositionScript from "./move/S2C_SyncPositionScript"


export default class MsgScriptManager{

    private id2Msg:Map<number,any> = new Map();

    private static  _instance = new MsgScriptManager()
    private constructor(){
        this.loadAllScripts()
    }

    public static get instance(){
        return MsgScriptManager._instance
    }
    getMsgScript(msgId:number){
        return this.id2Msg.get(msgId)
    }

    loadAllScripts(){
        this.id2Msg.set(-209655257,S2C_FriendListRespScript)
        this.id2Msg.set(-1410039937,S2C_SyncPositionScript)
    }
}
